using Microsoft.AspNetCore.Mvc;
using Project_Schedule.Domain.Receptionist.com.core.dto;
using Project_Schedule.Domain.Receptionist.com.core.Interface;
using Project_Schedule.Domain.Request;

namespace Project_Schedule.Domain.Receptionist.com.core.Controller;

[ApiController]
[Route("api/[controller]/[action]")]
public class System_LoginController : ControllerBase
{
    private readonly ISystemLogin _systemLogin;

    public System_LoginController(ISystemLogin systemLogin)
    {
        _systemLogin = systemLogin;
    }

    [HttpPost]
    public async Task<JRequest> Login(LoginUser dto)
        => await _systemLogin.Login(dto);
}